sketching polynomial functions